/**
 * Created with CLion.
 * Description: 
 * User: loong
 * Date: 2020-06-14
 * Time: 21:59
 */

#include <iostream>
#include <boost/timer.hpp>

using namespace boost;
using namespace std;

int main(){
    timer t;
    cout<<"max timespan:"<<t.elapsed_max()/3600 <<"h"<<endl;
    cout<<"min timespan:"<<t.elapsed_min() <<"s"<<endl;
    cout<<"now time elapsed:"<< t.elapsed()<<"s"<<endl;
    return 0;
}
//max timespan:596.523h
//min timespan:0.001s
//now time elapsed:0.003s
//不适合大跨度时间的测量，最大跨度只有几百个小时，精度依赖于操作系统或者编译器。难以做到跨平台。需要以天、月、年为单位的是狗使用date_time.